package com.ruitu.router_module.bean.cart;

import java.io.Serializable;
import java.util.List;

/**
 * Created by  on 2018/3/28.
 */

public class CartBean implements Serializable {

    /**
     * total : 8399
     * carts : [{"companyId":"7485648947830831758","companyName":"李伟涵的企业","list":[{"id":"7415449608451307029","accountId":"5657993663810193931","companyId":"7485648947830831758","goodsId":"40140006321176712","goodsType":null,"goodsPrice":8399,"count":1,"createTime":1541581687000,"goodsName":"Apple iPhone X (A1865) 64GB 银色 移动联通电信4G手机","skuId":"984243818345709566","companyName":"李伟涵的企业","imageUrl":"/images/goods/5606407947156277800_1538029855400.jpg","cartList":null,"price":8399,"modelType":"1","couponList":null,"skuName":"128g 白色","totalMoney":8399,"discount":0,"disMoney":null}]}]
     */

    private double total;
    private List<CartsBean> carts;

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public List<CartsBean> getCarts() {
        return carts;
    }

    public void setCarts(List<CartsBean> carts) {
        this.carts = carts;
    }

    public static class CartsBean {
        /**
         * companyId : 7485648947830831758
         * companyName : 李伟涵的企业
         * list : [{"id":"7415449608451307029","accountId":"5657993663810193931","companyId":"7485648947830831758","goodsId":"40140006321176712","goodsType":null,"goodsPrice":8399,"count":1,"createTime":1541581687000,"goodsName":"Apple iPhone X (A1865) 64GB 银色 移动联通电信4G手机","skuId":"984243818345709566","companyName":"李伟涵的企业","imageUrl":"/images/goods/5606407947156277800_1538029855400.jpg","cartList":null,"price":8399,"modelType":"1","couponList":null,"skuName":"128g 白色","totalMoney":8399,"discount":0,"disMoney":null}]
         */

        private String companyId;
        private String companyName;
        private String companyLogo;
        private List<ListBean> list;
        private boolean isGroupChecked;

        public String getCompanyLogo() {
            return companyLogo;
        }

        public void setCompanyLogo(String companyLogo) {
            this.companyLogo = companyLogo;
        }

        public boolean isGroupChecked() {
            return isGroupChecked;
        }

        public void setGroupChecked(boolean groupChecked) {
            isGroupChecked = groupChecked;
        }

        public String getCompanyId() {
            return companyId;
        }

        public void setCompanyId(String companyId) {
            this.companyId = companyId;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * id : 7415449608451307029
             * accountId : 5657993663810193931
             * companyId : 7485648947830831758
             * goodsId : 40140006321176712
             * goodsType : null
             * goodsPrice : 8399
             * count : 1
             * createTime : 1541581687000
             * goodsName : Apple iPhone X (A1865) 64GB 银色 移动联通电信4G手机
             * skuId : 984243818345709566
             * companyName : 李伟涵的企业
             * imageUrl : /images/goods/5606407947156277800_1538029855400.jpg
             * cartList : null
             * price : 8399
             * modelType : 1
             * couponList : null
             * skuName : 128g 白色
             * totalMoney : 8399
             * discount : 0
             * disMoney : null
             */

            private String id;
            private String accountId;
            private String companyId;
            private String goodsId;
            private Object goodsType;
            private double goodsPrice;
            private int count;
            private long createTime;
            private String goodsName;
            private String skuId;
            private String companyName;
            private String imageUrl;
            private Object cartList;
            private double price;
            private String modelType;
            private Object couponList;
            private String skuName;
            private double totalMoney;
            private double discount;
            private Object disMoney;

            private String status;// added at 2019.01.23 by wubin 0 下线 1 在售
            private boolean update;// added at 2019.02.13 by wubin false:更新过规格的商品,不能再买

            private boolean isChildChecked;
            private String companyLogo;

            public String getCompanyLogo() {
                return companyLogo;
            }

            public void setCompanyLogo(String companyLogo) {
                this.companyLogo = companyLogo;
            }

            public boolean isUpdate() {
                return update;
            }

            public void setUpdate(boolean update) {
                this.update = update;
            }

            public String getStatus() {
                return status;
            }

            public void setStatus(String status) {
                this.status = status;
            }

            public boolean isChildChecked() {
                return isChildChecked;
            }

            public void setChildChecked(boolean childChecked) {
                isChildChecked = childChecked;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getAccountId() {
                return accountId;
            }

            public void setAccountId(String accountId) {
                this.accountId = accountId;
            }

            public String getCompanyId() {
                return companyId;
            }

            public void setCompanyId(String companyId) {
                this.companyId = companyId;
            }

            public String getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(String goodsId) {
                this.goodsId = goodsId;
            }

            public Object getGoodsType() {
                return goodsType;
            }

            public void setGoodsType(Object goodsType) {
                this.goodsType = goodsType;
            }

            public double getGoodsPrice() {
                return goodsPrice;
            }

            public void setGoodsPrice(double goodsPrice) {
                this.goodsPrice = goodsPrice;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }

            public String getSkuId() {
                return skuId;
            }

            public void setSkuId(String skuId) {
                this.skuId = skuId;
            }

            public String getCompanyName() {
                return companyName;
            }

            public void setCompanyName(String companyName) {
                this.companyName = companyName;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }

            public Object getCartList() {
                return cartList;
            }

            public void setCartList(Object cartList) {
                this.cartList = cartList;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public String getModelType() {
                return modelType;
            }

            public void setModelType(String modelType) {
                this.modelType = modelType;
            }

            public Object getCouponList() {
                return couponList;
            }

            public void setCouponList(Object couponList) {
                this.couponList = couponList;
            }

            public String getSkuName() {
                return skuName;
            }

            public void setSkuName(String skuName) {
                this.skuName = skuName;
            }

            public double getTotalMoney() {
                return totalMoney;
            }

            public void setTotalMoney(double totalMoney) {
                this.totalMoney = totalMoney;
            }

            public double getDiscount() {
                return discount;
            }

            public void setDiscount(double discount) {
                this.discount = discount;
            }

            public Object getDisMoney() {
                return disMoney;
            }

            public void setDisMoney(Object disMoney) {
                this.disMoney = disMoney;
            }
        }
    }
}

